/**
 * @description 全局错误监控（前端错误或接口抛出的错误）
 */
import Vue from 'vue'
// import store from '@/store'
import settings from '@/settings'

const { isErrorLog } = settings
console.log('isErrorLog', isErrorLog)

Vue.config.errorHandler = function(error, vm, info) {
  console.log('error', error, info)
  console.log('error2', error.message, error.stack, error.name)
  console.log('错误地址', window.location.href)
}
